package Entities;

/**
 *
 * @author 647_2
 */
public class CompositionInPlayList extends BaseEntity {

    // TODO Добавить конфиг

    private Composition composition;
    private Playlist playlist;
    private Integer position;

    public CompositionInPlayList(){
        super();
        composition = null;
        playlist = null;
        position = null;
    }

    public CompositionInPlayList(int ID, Composition composition, Playlist playlist, Integer position){
        super(ID, "Сущность композиции в плейлисте");
        this.composition = composition;
        this.playlist = playlist;
        this.position = position;
    }

    public CompositionInPlayList(Composition composition, Playlist playlist, Integer position){
        super("Сущность композиции в плейлисте");
        this.composition = composition;
        this.playlist = playlist;
        this.position = position;
    }

    public Composition get_composition() {
        return composition;
    }

    public void set_composition(Composition composition) {
        this.composition = composition;
    }

    public Playlist get_playlist() {
        return playlist;
    }

    public void set_playlist(Playlist playlist) {
        this.playlist = playlist;
    }

    public Integer get_position() {
        return position;
    }

    public void set_position(Integer position) {
        this.position = position;
    }

}
